package com.fap.search.meta.impl;

import java.util.ArrayList;
import java.util.List;

import com.fap.search.meta.IType;
import com.fap.search.parameter.IParameter;
import com.fap.search.parameter.impl.PString;

public class ArrayType implements IType {
	public final String TYPE = "ARRAY";
	public List<String> arrayValues=new ArrayList<String>();
	
	public boolean checkValue(IParameter value) throws Exception {
		if(!(value instanceof PString)) return false;
		
		return arrayValues.contains(value.getValue());		
	}
}
